package com.duapk.search.bean;

import org.apache.commons.lang.builder.ReflectionToStringBuilder;

/**
 * 搜索请求对象
 * 
 * @Package: com.duapk.search.bean
 * @ClassName: SearchRequest
 * @author: jiangzheng
 * @date: Apr 4, 2011 7:46:22 PM
 * 
 */
public class SearchRequest {

	/**
	 * 搜索关键词
	 */
	private String keyword;

	/**
	 * 每页记录数
	 */
	private int pageSize;

	/**
	 * 当前页
	 */
	private int pid;

	/**
	 * 分类
	 */
	private String category;

	/**
	 * 星级
	 */
	private float star;

	/**
	 * 版本号
	 */
	private float version;

	/**
	 * 发布时间
	 */
	private long pubtime;
	
	/**
	 * 大小
	 */
	private int size;

	/**
	 * 搜索字段
	 */
	private String field;

	public float getStar() {
		return star;
	}

	public void setStar(float star) {
		this.star = star;
	}

	public float getVersion() {
		return version;
	}

	public void setVersion(float version) {
		this.version = version;
	}

	public String getCategory() {
		return category;
	}

	public void setCategory(String category) {
		this.category = category;
	}

	public String getKeyword() {
		return keyword;
	}

	public void setKeyword(String keyword) {
		this.keyword = keyword;
	}

	public int getPageSize() {
		return pageSize;
	}

	public void setPageSize(int pageSize) {
		this.pageSize = pageSize;
	}

	public int getPid() {
		return pid;
	}

	public void setPid(int pid) {
		this.pid = pid;
	}

	@Override
	public String toString() {
		return ReflectionToStringBuilder.toString(this);
	}

	public long getPubtime() {
		return pubtime;
	}

	public void setPubtime(long pubtime) {
		this.pubtime = pubtime;
	}

	public String getField() {
		return field;
	}

	public void setField(String field) {
		this.field = field;
	}

	public int getSize() {
		return size;
	}

	public void setSize(int size) {
		this.size = size;
	}
}
